cmake_minimum_required(VERSION 3.24)

#set(
#        UserFunc_Src
#        ${CMAKE_CURRENT_SOURCE_DIR}/
#)
#set(
#        UserFunc_Inc
#        ${CMAKE_CURRENT_SOURCE_DIR}/
#)
set(UserFunc_Src)
Set(UserFunc_Inc)
set(
        UserFunc_Src
        ${UserFunc_Src}
        ${CMAKE_CURRENT_SOURCE_DIR}/utils.c
        ${CMAKE_CURRENT_SOURCE_DIR}/flash.c
        ${CMAKE_CURRENT_SOURCE_DIR}/Dog.c
        ${CMAKE_CURRENT_SOURCE_DIR}/dynamixel2.c
        ${CMAKE_CURRENT_SOURCE_DIR}/HX711.c
        ${CMAKE_CURRENT_SOURCE_DIR}/imu.c
        ${CMAKE_CURRENT_SOURCE_DIR}/nijie.c
        ${CMAKE_CURRENT_SOURCE_DIR}/servo.c
        ${CMAKE_CURRENT_SOURCE_DIR}/state.c
        ${CMAKE_CURRENT_SOURCE_DIR}/test.c
        ${CMAKE_CURRENT_SOURCE_DIR}/valuepack.c
        ${CMAKE_CURRENT_SOURCE_DIR}/user_math.c
        #        ${CMAKE_CURRENT_SOURCE_DIR}/XL430W250.c
)
set(
        UserFunc_Inc
        ${UserFunc_Inc}
        ${CMAKE_CURRENT_SOURCE_DIR}
#        ${CMAKE_CURRENT_SOURCE_DIR}/XL430W250.h
)



set(UserFunc_IncDir
        ${UserFunc_Inc}
        PARENT_SCOPE
        )
include_directories(
        ${UserFunc_IncDIr}
        )

#include_directories(
#        ${CMAKE_CURRENT_SOURCE_DIR}/utils.h
#        ${CMAKE_CURRENT_SOURCE_DIR}/flash.h
#        ${CMAKE_CURRENT_SOURCE_DIR}/Dog.h
#        ${CMAKE_CURRENT_SOURCE_DIR}/dynamixel2.h
#        ${CMAKE_CURRENT_SOURCE_DIR}/HX711.h
#        ${CMAKE_CURRENT_SOURCE_DIR}/imu.h
#        ${CMAKE_CURRENT_SOURCE_DIR}/nijie.h
#        ${CMAKE_CURRENT_SOURCE_DIR}/servo.h
#        ${CMAKE_CURRENT_SOURCE_DIR}/state.h
#        ${CMAKE_CURRENT_SOURCE_DIR}/test.h
#        ${CMAKE_CURRENT_SOURCE_DIR}/valuepack.h
#        ${CMAKE_CURRENT_SOURCE_DIR}/XL430W250.h
#)

list(APPEND UserFunc_Src ${UserFunc_Inc})
set(UserFunc ${UserFunc_Src} PARENT_SCOPE)